function calculateSum(...num1) {
    let sum = 0;
    for (let num of num1) {
      sum+= num;
    }
    return sum;
  }
  console.log(calculateSum(8, 2, 3));
  console.log(calculateSum(4, 9, 6, 7)); 